<%--
  Created by IntelliJ IDEA.
  User: 甘渐宽
  Date: 2021/11/15
  Time: 21:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<!-- Head Begin -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>逸豪食堂管理系统| 登录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/static/assets_3.1.0/plugins/fontawesome-free/css/all.min.css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" href="/static/assets_3.1.0/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/static/assets_3.1.0/dist/css/adminlte.min.css">
</head>
<!-- Head End -->

<body class="hold-transition login-page">
<div class="login-box">
    <div class="login-logo">
        <a href="#">逸豪食堂管理系统</a>
    </div>
    <!-- /.login-logo -->

    <!-- /.login-logo -->
    <div class="card">
        <div class="card-body login-card-body">
            <p class="login-box-msg">欢迎您的登录</p>

        <form action="/login" method="post">

            <div class="alert alert-danger alert-dismissible" ${message == null ? "style='display:none'" : ""}>
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                ${message}
            </div>

            <div class="input-group mb-3">
                <input name="email" type="email" class="form-control" placeholder="邮箱" value="${email}">
                <div class="input-group-append">
                    <div class="input-group-text">
                        <span class="fas fa-envelope"></span>
                    </div>
                </div>
            </div>
            <div class="input-group mb-3">
                <input name="password" type="password" class="form-control" placeholder="密码" value="${password}">
                <div class="input-group-append">
                    <div class="input-group-text">
                        <span class="fas fa-lock"></span>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-6">
                    <div class="icheck-primary">
                        <input id="remember" name="isRemember" type="checkbox" ${isRemember == true ? "checked" : "" }>
                        <label for="remember">
                            记住我
                        </label>
                    </div>
                </div>
                    <div class="col-6">
                        <div class="icheck-primary">
                            <input id="remember1" name="isRemember" type="checkbox" ${isRemember == true ? "checked" : "" }>
                            <label for="remember1">
                                管理员登录
                            </label>
                        </div>
                    </div>
                </div>
                <!-- /.col -->
            <div class="row">
                <div class="col-12">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">用户登录</button>
                </div>
                <!-- /.col -->
            </div>
        </form>

            <p class="mb-1">
                <a href="#">忘记密码？</a>
            </p>
            <p class="mb-0">
                <a href="register.jsp" class="text-center">立即注册</a>
            </p>
    </div>
</div>
</div>

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- jQuery 3 -->
<script src="/static/assets_3.1.0/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/assets_3.1.0/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- iCheck -->
<script src="/static/assets_3.1.0/dist/js/adminlte.min.js"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' /* optional */
        });
    });
</script>
</body>
</html>